/**
 * @author zhaozhenjiang
 * 创建数据库软件安装响应文件
 * */

package com.auto.oracle;

final class createDatabase {
	private createFile cdb = null;
	public createDatabase(String base_path,String resp_name){
		cdb = new createFile(base_path, resp_name);
	}
	
	public void createFile(){
		cdb.init();
		cdb.append("sqlplus / as sysdba <<EOF");
		cdb.append("create spfile from pfile;");
		cdb.append("startup nomount");
		cdb.append("spool /home/oracle/crdb.log");
		cdb.append("@/home/oracle/.createdb.sql");
		cdb.append("EOF");
		cdb.close();
		cdb = null;
	}	

	@SuppressWarnings("unused")
	private class Decompile{
		
	}
}
